﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

/// <summary>
/// 状态基类
/// </summary>
public abstract class StateBase : ScriptableObject
{
    /// <summary>
    /// 状态帧更新
    /// </summary>
    /// <param name="gameObject"></param>
    public abstract void StateUpdate(GameObject gameObject);

    /// <summary>
    /// 入口函数
    /// </summary>
    /// <param name="gameObject"></param>
    public abstract void EnterState(GameObject gameObject);

    /// <summary>
    /// 出口函数
    /// </summary>
    /// <param name="gameObject"></param>
    public abstract void ExitState(GameObject gameObject);
}
